/*
 *    Copyright (c) 2018-2025, lengleng All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 * Neither the name of the pig4cloud.com developer nor the names of its
 * contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 * Author: lengleng (wangiegie@gmail.com)
 */

package com.pig4cloud.pig.daemon.quartz.event;

import com.pig4cloud.pig.daemon.quartz.entity.SysJob;
import lombok.AllArgsConstructor;
import lombok.Getter;
import org.quartz.Trigger;

/**
 * 定时任务事件
 * <p>
 * 封装定时任务及其触发器信息的事件对象。
 * 用于在任务执行前后进行事件处理，如任务监控、日志记录等。
 * </p>
 *
 * @author frwcloud
 * @author lengleng
 * @date 2025/05/31
 */
@Getter
@AllArgsConstructor
public class SysJobEvent {

	/**
	 * 定时任务对象
	 * 包含任务的所有配置信息
	 */
	private final SysJob sysJob;

	/**
	 * Quartz触发器对象
	 * 包含任务的触发时间和状态信息
	 */
	private final Trigger trigger;

}
